﻿<?php

$con =mysqli_connect("localhost","root","","tancet");
if(mysqli_connect_errno())
{
echo "mysql error: ".mysqli_connect_error();
}
$result = mysqli_query($con,"select * from tancet2014 where reg = '".$_GET["q"]."'");
while($row=mysqli_fetch_array($result))
{
echo "<div class=\"result\">";
echo "Hi ".$row['name'].",";
echo "<br/>";
echo "<br/>";

if($row['MbaRank'] >0)
{
echo "Your Tancet <b>MBA </b> mark is ".$row['mba'].". Your unofficial TANCET Rank is ".$row['MbaRank']." out of 29,831 candidates appeared TANCET 2014 MBA Exam.";
echo "<br/>";
}

if($row['McaRank'] >0)
{
echo "Your Tancet <b>MCA </b> mark is ".$row['mca'].". Your unofficial TANCET Rank is <b>".$row['McaRank']."</b> out of 13,273 candidates appeared TANCET 2014 MBA Exam.";
echo "<br/>";
}


if($row['MeRank'] >0)
{
echo "Your Tancet <b>ME </b> mark is ".$row['me'].". Your Rank is <b>".$row['MeRank']."</b> out of 46,344 candidates appeared TANCET 2014 ME Exam.";
echo "<br/>";
}
if($row['mba'] ==0 and $row['me']==0 and $row['mca'] ==0)
{
echo "You didnt attend any TANCET Exam.";

}
echo "<br/>";
echo "<br/>";
echo "* Your official rank might reduce considerably. It will be calculated based on number of candidates applied for TANCA 2014 counselling. 
This Unofficial TANCET Rank 2014 is calculated based on number of candidates appeared for TANCET 2014.  Use this for reference, apply for counselling.";
echo "<br/>";
echo "<br/>";
echo "Best Luck for your future.";
echo "<br/>";
echo "<br/>";
echo "Share <a href=\"www.auengineers.com\">www.Auengineers.com </a> in Facebook, Gmail, google Groups.";
echo "</div>";
}
?>